//
//  PhoneCardInfo.m
//  EasyToo
//
//  Created by YuanDee on 13-9-9.
//
//

#import "PhoneCardInfo.h"

@implementation PhoneCardInfo
- (id)initWithDictionary:(NSDictionary *)jsonDictionary
{
    self = [self init];
    if (self) {
        self.cardId = GetDictionaryStringDefaultNil(jsonDictionary, @"id");
        self.cardName = GetDictionaryStringDefaultNil(jsonDictionary, @"name");
        self.cardPrice = GetDictionaryStringDefaultNil(jsonDictionary, @"facevalue");
    }
    return self;
}

@end
